package com.platform.core.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * Description: ncloud_sys_user_post实体类
 *
 * @author Coder
 */
@Setter
@Getter
@Entity
@Table(name = "ncloud_sys_user_post")
public class NcloudSysUserPostEntity implements Serializable {

    /**
    * 主键id
    */
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String id;

    /**
    * 用户编码
    */
    @Column(name = "user_id" )
    private String userId;

    /**
    * 岗位编码
    */
    @Column(name = "depart_id" )
    private String departId;

    /**
    * 创建时间
    */
    @Column(name = "create_date" )
    private LocalDateTime createDate;

    /**
    * 创建人
    */
    @Column(name = "create_by" )
    private String createBy;

}
